<?php

namespace App\Models;

use App\Events\Position\DeletedEvent;
use Illuminate\Database\Eloquent\Model;
use App\Traits\Relation\PositionRelation;

/**
 * 岗位信息数据模型
 *
 * Date: 19/03/2018
 * @author George
 * @package App\Models
 */
class Position extends Model
{
	use PositionRelation;

	/**
	 * 定义可填充字段
	 *
	 * @var array
	 * Date: 22/03/2018
	 * @author George
	 */
	protected $guarded = ['id'];

	/**
	 * 定义模型事件
	 *
	 * @var array
	 * Date: 09/05/2018
	 * @author George
	 */
	protected $dispatchesEvents = [
		'deleted' => DeletedEvent::class
	];
}
